# CMakeLists.txt for newsfsys (Release 8) RWD 2022
if(APPLE)
  set(CMAKE_C_FLAGS "-O2 -Dunix -D__MAC__ -DMAC -DENABLE_PVX")
else()
  if(MINGW OR MSVC)
    if(MINGW)
      set(CMAKE_C_FLAGS "-O2 -D_X86_ -DWIN32 -D_WIN32 -D__GNUWIN32__ -DENABLE_PVX")
    else()
      set(CMAKE_C_FLAGS "-O2 -D_X86_ -DWIN32 -D_WIN32 -DENABLE_PVX")
    endif()
  else()
    set(CMAKE_C_FLAGS "-O2 -Dunix -Dlinux -D_X86_ -DENABLE_PVX")
  endif()
endif()

include_directories(../newinclude)
#RWD 2025 pvx file handling now always in pvxio2
if(MINGW OR MSVC)
   set(SFSYS_SRCS sfsys.c snd.c sfdir.c osbind.c props.c shortcuts.c scandir.c alias.c ieee80.c)
else()
   set(SFSYS_SRCS sfsys.c snd.c sfdir.c osbind.c props.c ieee80.c)
endif()

add_library(sfsys ${SFSYS_SRCS})
